package ${package}.pojo;

import br.com.me.ceap.util.annotations.SimpleLabel;
import br.com.me.ceap.util.annotations.SimpleTooltip;
import org.joda.time.DateTime;

/**
 * An example POJO just for demonstration purposes. Notice how this is written in Java as opposed to Groovy, and both
 * mix-and-match as you wish.
 */
public class ExamplePOJO {
// ------------------------------ FIELDS ------------------------------

    @SimpleLabel("Something")
    @SimpleTooltip("Some tooltip")
    private String name;

    private String desc;
    private DateTime creation;
    private Long number;

// --------------------------- CONSTRUCTORS ---------------------------

    public ExamplePOJO() {
    }

    public ExamplePOJO(final String name, final String desc, final DateTime creation, final Long number) {
        this.name = name;
        this.desc = desc;
        this.creation = creation;
        this.number = number;
    }

// --------------------- GETTER / SETTER METHODS ---------------------

    public DateTime getCreation() {
        return creation;
    }

    public void setCreation(final DateTime creation) {
        this.creation = creation;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(final String desc) {
        this.desc = desc;
    }

    public String getName() {
        return name;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(final Long number) {
        this.number = number;
    }
}
